package com.tn.exam.util.taoyf.web;

import java.util.Enumeration;

import javax.servlet.http.HttpServletRequest;

/**
 * 关于请求的一些常用方法
 * @author taoyf
 *
 */
public class RequestUtil {
	
	public static void logRequestParameter(HttpServletRequest request){
		Enumeration<String> en = request.getParameterNames();
		
		StringBuilder sb = new StringBuilder();
		while(en.hasMoreElements()){
			String key = en.nextElement();
			String value = request.getParameter(key);
			sb.append(key + "=" + value + ";");
		}
		System.out.println(sb.toString());
	}
	
	public static void logRequestURL(HttpServletRequest request){

	}
}
